package com.wjv.example.spbt.shiro.controller;

import com.wjv.example.common.ResultInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Title: HomeController</p>
 *
 * @author wjv
 * @date 2021/7/5 11:43
 */
@RestController
@RequestMapping("/home")
public class HomeController {

    @GetMapping("/index")
    public ResultInfo index() {
        return ResultInfo.success("hello");
    }

    @GetMapping("/list")
    public ResultInfo list() {
        return ResultInfo.success("list");
    }
}
